package day1026.TuXing;

public class Circular extends Image {
    public static double pai=3.14;
    private double radius;

    public Circular(double radius) {
        this.radius = radius;
    }

    @Override
    public double mianji() {
        double result=0.0;
        result =radius*radius*pai;
        System.out.println("圆形面积是:"+result);
        return result;
    }

    @Override
    public double zhouchang() {
        double result =0.0;
        result =2*pai*radius;
        System.out.println("圆形周长是:"+result);
        return result;
    }
}
